﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true"
    CodeBehind="Dealers.aspx.cs" Inherits="TimKen.Web.Dealers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Common/Style/common.css" rel="stylesheet" type="text/css" />
    <link href="Common/Style/PagerStyle.css" rel="stylesheet" type="text/css" />
    <script src="Common/Script/plugin/json2/json2.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".nav_li").hover(function () {//鼠标放上去时候的效果
                $(this).children("a").addClass("navon"); //鼠标放上去的加上高亮
                $(this).children("div").show(); //鼠标放上去的二级栏目出来
                $(this).siblings().children("a").removeClass("navon"); //其他的高亮取消
                $(".common_search_tk").css("position", "static");
                $(".common_search_tkicon").hide();
            }, function () {//鼠标移开时候的效果
                $(this).children("a").removeClass("navon"); //鼠标移开去掉高亮
                $(this).children("div").hide(); //鼠标移开隐藏二级栏目
                $(".common_search_tk").css("position", "relative");
                $(".common_search_tkicon").show();
                $(".nav_li:eq(3)").children("a").addClass("navon"); //回到当前栏目高亮
            });
        });
        $(document).ready(function () {
            $(".nav_li:eq(3)").children("a").addClass("navon").parent().siblings().children("a").removeClass();
            $(".left_nav ul li:eq(1)").children("a").addClass("left_navon"); //左侧导航，当前栏目高亮
            $(".partner_map ul").hover(function () {
                $(this).addClass("partner_mapon");
            }, function () {
                $(this).removeClass("partner_mapon");
            });
            $(".partner_map ul").click(function () {
                //var id = $(this).attr("id");
                $(".partner_po").show();
            });

            $(".partner_map_selectR").click(function () {
                $(".partner_po").hide();
            });
            if (window.location.search.length >= 8) {
                $('.partner_po').show();
            }
            else {
                $(".partner_po").hide();
            }
        });
        window.onload = function () { for (var ii = 0; ii < document.links.length; ii++) document.links[ii].onfocus = function () { this.blur() } }	
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <div class="left_nav">
        <ul>
            <li><a href="Business.aspx">
                <%=GetLangString("Manufactures") %></a></li>
            <li><a href="Dealers.aspx">
                <%=GetLangString("MenuDistributor")%></a></li>
        </ul>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
    <form id="form1" runat="server">
    <asp:HiddenField ID="hideValue" runat="server" Value="sssssss" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="partner_box common_border">
        <ul class="common_page">
            <%= GetLangString("Currentposition") %>：<a href="Index.aspx"><%=GetLangString("MenuHome")%></a>/<a
                href="Dealers.aspx"><%=GetLangString("PartnerCompanies") %></a>/<a href="Business.aspx"><%=GetLangString("MenuDistributor")%></a>
        </ul>
        <ul class="partner_pe">
            <div class="partner_map">
                <a href="Dealers.aspx?ProvinceID=230000">
                    <ul id="p230000" title="黑龙江">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=220000">
                    <ul id="p220000" title="吉林">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=210000">
                    <ul id="p210000" title="辽宁">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=120000">
                    <ul id="p120000" title="天津">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=150000">
                    <ul id="p150000" title="内蒙古">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=110000">
                    <ul id="p110000" title="北京">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=130000">
                    <ul id="p130000" title="河北">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=370000">
                    <ul id="p370000" title="山东">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=410000">
                    <ul id="p410000" title="河南">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=320000">
                    <ul id="p320000" title="江苏">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=310000">
                    <ul id="p310000" title="上海">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=330000">
                    <ul id="p330000" title="浙江">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=340000">
                    <ul id="p340000" title="安徽">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=420000">
                    <ul id="p420000" title="湖北">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=430000">
                    <ul id="p430000" title="湖南">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=440000">
                    <ul id="p440000" title="广东">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=610000">
                    <ul id="p610000" title="陕西">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=500000">
                    <ul id="p500000" title="重庆">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=510000">
                    <ul id="p510000" title="四川">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=520000">
                    <ul id="p520000" title="贵州">
                    </ul>
                </a><a href="Dealers.aspx?ProvinceID=530000">
                    <ul id="p530000" title="云南">
                    </ul>
                </a>
            </div>
            <div class="partner_pe_txt">
                如果您所在区域没有我们的授权<%=GetLangString("MenuDistributor")%>，请联系驿桥，021-61173500
            </div>
            <div class="partner_po">
                <ul class="partner_map_select fix">
                    <li class="partner_map_selectL floatleft">
                        <%--           <select id="Select1" class="partner_map_selone" runat="server">
                                <option>授权区域</option>
                            </select>--%>
                        <asp:DropDownList ID="ddlProvince" runat="server" CssClass="partner_map_selone">
                            <asp:ListItem Value="0" Text='<%=GetLangString("Region") %>'><%--授权区域--%></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddlDealerName" runat="server" CssClass="partner_map_seltwo">
                            <asp:ListItem Value="0" Text='<%=GetLangString("ProductLest") %>'><%--授权产品线--%></asp:ListItem>
                        </asp:DropDownList>
                        <%--      <select id="ddlDealerName" class="partner_map_seltwo">
                            <option>授权产品线</option>
                        </select>--%>
                        <a href="#">
                            <%--<img src="Common/Image/common/map_select.gif" >--%>
                                <%if (LanguageID == 1)
                                  { %>
                            <asp:ImageButton ID="btnSubmit" ImageAlign="AbsMiddle" runat="server" OnClick="btnSubmit_Click"
                                ImageUrl="Common/Image/common/map_select.gif" Width="60" Height="25" BorderStyle="None" />
                                <%}
                                  else
                                  { %>
                            <asp:ImageButton ID="ImageButton1" ImageAlign="AbsMiddle" runat="server" OnClick="btnSubmit_Click"
                                ImageUrl="Common/Image/common_en/map_select.gif" Width="60" Height="25" BorderStyle="None" />
                                <%} %>
                        </a></li>
                    <li class="partner_map_selectR floatright"></li>
                </ul>
                <ul class="partner_table">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <th scope="col" style="width: 80px">
                                <%--授权区域--%><%=GetLangString("Region") %>
                            </th>
                            <th scope="col" style="width: 180px">
                                <%--授权单位名称--%><%=GetLangString("AuthorizationOfUnit") %>
                            </th>
                            <th scope="col" style="width: 200px; text-align: center">
                                <%--授权产品线--%><%=GetLangString("ProductLest") %>
                            </th>
                            <th scope="col" style="width: 100px">
                                <%--代理商级别--%><%=GetLangString("Agentsofthelevel") %>
                            </th>
                            <th scope="col" style="width: 100px">
                                <%--联系电话--%><%=GetLangString("Telephonenumber") %>
                            </th>
                        </tr>
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <contenttemplate>
                                <asp:Repeater ID="rptDealerDataView" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td style="text-align: center">
                                                <%#Eval("ProvinceName")%>
                                            </td>
                                            <td style="text-align: left">
                                                <%#Eval("CompanyName")%>
                                            </td>
                                            <td class="partner_tdlast" style="text-align: left">
                                                • <%#Eval("DealerName")%>
                                            </td>
                                            <td style="text-align: center">
                                                <%#Eval("DealerLive")%>
                                            </td>
                                            <td class="partner_tdlast" style="text-align: left">
                                                <%#Eval("PhoneNo")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </contenttemplate>
                        </asp:UpdatePanel>
                    </table>
                </ul>
                <%--     <table cellpadding="0" cellspacing="0" align="center" width="99%" class="border">
            <tr>
                <td align="lef<asp:DropDownList runat="server"></asp:DropDownList>t" colspan="2">--%>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <contenttemplate>
                        <ux:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
                            runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" Width="95%"
                            ShowPageIndexBox="Always" PageSize="8" HorizontalAlign="right" EnableTheming="true"
                            AlwaysShow="true" PageIndexBoxType="DropDownList" OnPageChanged="AspNetPager1_PageChanged"
                            ButtonImageNameExtension="n" CpiButtonImageNameExtension="r" ShowCustomInfoSection="Left"
                            ShowNavigationToolTip="true" CustomInfoTextAlign="Left" LayoutType="Table" 
                            CustomInfoHTML="" PrevPageText="上一页">
                        </ux:AspNetPager>
                    </contenttemplate>
                </asp:UpdatePanel>
                <%--         </td>
            </tr>
        </table>--%>
            </div>
        </ul>
    </div>
    </form>
</asp:Content>
